﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Temp_20190910_AForm8
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            this.baseSplitControl2.Panel2.SizeChanged += Panel_SizeChanged;
            this.baseSplitControl2.Panel1.SizeChanged += Panel_SizeChanged;
            this.baseSplitControl1.Panel2.SizeChanged += Panel_SizeChanged;
        }

        private void Panel_SizeChanged(object sender, EventArgs e)
        {
            label1.Text = this.baseSplitControl2.Panel2.Size.ToString();
            label2.Text = this.baseSplitControl2.Panel1.Size.ToString();
            label3.Text = this.baseSplitControl1.Panel2.Size.ToString();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //baseSplitControl1.SplitterDistanceRate = 0.5;
            //MessageBox.Show(baseSplitControl1.SplitterDistance + " | " + baseSplitControl1.SplitterDistanceRate);
        }


    }
}
